<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form:form commandName="itemObj" method="post">
		<table>
			<tr>
				<td>ITEM NAME</td>
				<td><form:input path="itemName"></form:input></td>
			</tr>
			<tr>
				<td>BRAND NAME</td>
				<td><form:select path="brand.brandId">
						<c:forEach items="${brandNameList}" var="brandEntry">
							<form:option label="${brandEntry.brandName}" value="${brandEntry.brandId}"></form:option>
						</c:forEach>
					</form:select> 
				</td>
			</tr>
			<tr>
				<td><input type="submit" value="SUBMIT"></td>
				<td><input type="button" value="CANCEL"></td>
			</tr>
		</table>
	</form:form>
</body>
</html>